package com.people.core.log.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * @author yuanqinglong
 * @date 2022/7/7 11:13
 */
@Data
@RefreshScope
@ConfigurationProperties(prefix = "service-log")
public class ServerLogProperties {

    /**
     * 启用服务日志；默认为 true
     */
    private boolean enabled = true;

    /**
     * 切入点: RestController
     */
    private String pointcut = "@within(org.springframework.web.bind.annotation.RestController) " +
            "&& (!@annotation(com.people.core.log.aspect.LoggingIgnore))";

    /**
     * 警告阈值(ms)
     */
    private Integer warningThreshold = 300;


}
